package com.kx.hackathon.service.impl;

import com.kx.hackathon.service.HandlerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.io.IOException;

@Service("DefaultServiceImpl")
public class DefaultServiceImpl implements HandlerService {
    @Autowired
    @Qualifier("AiQaServiceImpl")
    private AiQaServiceImpl aiQaService;

    @Override
    public String handle(String msg, String arg) throws Exception {
        return aiQaService.handle(msg,arg);
    }

    @Override
    public String init(String msg, String arg) {
        return null;
    }

    @Override
    public boolean needInit() {
        return false;
    }
}
